//
//  HotNewsModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/9/19.
//

import UIKit
import ObjectMapper
class HotNewsModel:  Mappable {
    var code : String?
    var data : [HotNewsDataModel]?
    var msg : String?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        code <- map["code"]
        data <- map["data"]
        msg <- map["msg"]
    }
}

class HotNewsDataModel:  Mappable {
    var author : String?
    var columnImage : String?
    var columnName : String?
    var content: String?
    var createdTime: String?
    var hits: String?
    var id: NSInteger?
    var imageUrl: String?
    var title: String?
    
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        author <- map["author"]
        columnImage <- map["columnImage"]
        columnName <- map["columnName"]
        content <- map["content"]
        createdTime <- map["createdTime"]
        hits <- map["hits"]
        id <- map["id"]
        imageUrl <- map["imageUrl"]
        title <- map["title"]
    }
}
